package eteam.aps.systeminterface.model.vo;

import java.util.Objects;

/**
 * 查询信息展示
 * <p>
 * 用于查询用户、部门、机构等信息
 *
 * @author WMT
 * @Date 2023/2/3 11:54
 */
public class QueryInfoVo {

    /**
     * 状态【1：启用】
     */
    public static final int STATE_ENABLE = 1;

    /**
     * 用户列表【0：用户】
     */
    public static final int PERSON_TYPE_USER = 0;

    /**
     * Id
     */
    private String id;

    /**
     * 编号
     */
    private String code;

    /**
     * 全称
     */
    private String name;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QueryInfoVo that = (QueryInfoVo) o;
        return Objects.equals(name, that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name);
    }
}
